package com.alibaba.csp.sentinel.dashboard.rule.nacos.config;

/**
 * NacosProperties
 *
 * @author kancy
 * @date 2020/5/4 10:42
 */
public class NacosProperties {
    /**
     * nacos 服务地址
     */
    private String serverAddr = "127.0.0.1:8848";
    /**
     * 命名空间
     */
    private String namespace = "";
    /**
     * 用户名
     */
    private String password = "nacos";
    /**
     * 密码
     */
    private String username = "nacos";
    /**
     * 拉取配置超时时间
     */
    private long readTimeoutMs = 5000;
    /**
     * 组ID
     */
    private String groupId = "DEFAULT_GROUP";

    /**
     * 流控数据ID后缀
     */
    private String flowDataIdSuffix = "-sentinel-flow";
    /**
     * 热点参数流控数据ID后缀
     */
    private String paramFlowDataIdSuffix = "-sentinel-param-flow";
    /**
     * 系统规则数据ID后缀
     */
    private String systemDataIdSuffix = "-sentinel-system";
    /**
     * 授权规则数据ID后缀
     */
    private String authorityDataIdSuffix = "-sentinel-authority";
    /**
     * 降级规则数据ID后缀
     */
    private String degradeDataIdSuffix = "-sentinel-degrade";
    /**
     * 网关流控规则数据ID后缀
     */
    private String gatewayFlowDataIdSuffix = "-sentinel-gateway-flow";
    /**
     * 网关Api规则数据ID后缀
     */
    private String gatewayApiDataIdSuffix = "-sentinel-gateway-api";

    public String getServerAddr() {
        return serverAddr;
    }

    public void setServerAddr(String serverAddr) {
        this.serverAddr = serverAddr;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public long getReadTimeoutMs() {
        return readTimeoutMs;
    }

    public void setReadTimeoutMs(long readTimeoutMs) {
        this.readTimeoutMs = readTimeoutMs;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getFlowDataIdSuffix() {
        return flowDataIdSuffix;
    }

    public void setFlowDataIdSuffix(String flowDataIdSuffix) {
        this.flowDataIdSuffix = flowDataIdSuffix;
    }

    public String getParamFlowDataIdSuffix() {
        return paramFlowDataIdSuffix;
    }

    public void setParamFlowDataIdSuffix(String paramFlowDataIdSuffix) {
        this.paramFlowDataIdSuffix = paramFlowDataIdSuffix;
    }

    public String getSystemDataIdSuffix() {
        return systemDataIdSuffix;
    }

    public void setSystemDataIdSuffix(String systemDataIdSuffix) {
        this.systemDataIdSuffix = systemDataIdSuffix;
    }

    public String getAuthorityDataIdSuffix() {
        return authorityDataIdSuffix;
    }

    public void setAuthorityDataIdSuffix(String authorityDataIdSuffix) {
        this.authorityDataIdSuffix = authorityDataIdSuffix;
    }

    public String getDegradeDataIdSuffix() {
        return degradeDataIdSuffix;
    }

    public void setDegradeDataIdSuffix(String degradeDataIdSuffix) {
        this.degradeDataIdSuffix = degradeDataIdSuffix;
    }

    public String getGatewayFlowDataIdSuffix() {
        return gatewayFlowDataIdSuffix;
    }

    public void setGatewayFlowDataIdSuffix(String gatewayFlowDataIdSuffix) {
        this.gatewayFlowDataIdSuffix = gatewayFlowDataIdSuffix;
    }

    public String getGatewayApiDataIdSuffix() {
        return gatewayApiDataIdSuffix;
    }

    public void setGatewayApiDataIdSuffix(String gatewayApiDataIdSuffix) {
        this.gatewayApiDataIdSuffix = gatewayApiDataIdSuffix;
    }
}
